#include <iostream>
using namespace std;

int main()
{

	//数组长度
	const int ARRAY_LENGTH = 5;
	int myNumbers[ARRAY_LENGTH] = { 11, 22, 33, -44, 55 };
	//索引从0开始
	cout << myNumbers[0] << endl;
	cout << myNumbers[1] << endl;
	cout << myNumbers[2] << endl;
	cout << myNumbers[3] << endl;
	cout << myNumbers[4] << endl;

	myNumbers[1] = 999;
	cout << myNumbers[1] << endl;
	//二维数组
	int threeRowsThreeColumns[3][3] = { {-11, 12, 13}, {21, 22, 23}, {31, 32, 33} };

	cout << "Row 0: " << threeRowsThreeColumns[0][0] << threeRowsThreeColumns[0][1] << threeRowsThreeColumns[0][2] << endl;
	cout << "Row 1: " << threeRowsThreeColumns[1][0] << threeRowsThreeColumns[1][1] << threeRowsThreeColumns[1][2] << endl;
	cout << "Row 2: " << threeRowsThreeColumns[2][0] << threeRowsThreeColumns[2][1] << threeRowsThreeColumns[2][2] << endl;

    //
   cout << "Bytes used by an int: " << sizeof(int) << endl;
   cout << "Bytes used by myNumbers: " << sizeof(myNumbers) << endl;
   cout << "Bytes used by an element: " << sizeof(myNumbers[0]) << endl;

	return 0;
}